package com.heima.test10;

public class MyRunnable implements Runnable{
    @Override
    public synchronized void run() {
        for (int i = 0; i < 1000; i++) {
            System.out.println(Thread.currentThread().getName()+"===="+i);
        }
    }
}